import request from '@/utils/request'

// 【COM】生成APP读
export function createAppUrlByRead(data) {
  return request({
    url: '/api/common/oss/createAppUrlByRead',
    method: 'post',
    data: data
  })
}

// 【COM】生成APP写
export function createAppUrlByWrite(data) {
  return request({
    url: '/api/common/oss/createAppUrlByWrite',
    method: 'post',
    data: data
  })
}

// 【WEB】生成秘钥写
export function createSecurityUrlByWrite(data) {
  return request({
    url: '/api/common/oss/createSecurityUrlByWrite',
    method: 'post',
    data: data
  })
}

// 【WEB】删除APP文件
export function deleteAppFile(data) {
  return request({
    url: '/api/common/oss/deleteAppFile',
    method: 'post',
    data: data
  })
}

// 【WEB】删除秘钥文件
export function deleteSecurityFile(data) {
  return request({
    url: '/api/common/oss/deleteSecurityFile',
    method: 'post',
    data: data
  })
}

// 【COM】生成APP读取URL(无需登陆)
export function createPermitAppUrlByRead(data) {
  return request({
    url: '/api/common/oss/createPermitAppUrlByRead',
    method: 'post',
    data: data
  })
}

// 【COM】生成APP写入URL(无需登陆)
export function createPermitAppUrlByWrite(data) {
  return request({
    url: '/api/common/oss/createPermitAppUrlByWrite',
    method: 'post',
    data: data
  })
}

// 【WEB】删除APP文件(无需登陆)
export function deletePermitAppFile(data) {
  return request({
    url: '/api/common/oss/deletePermitAppFile',
    method: 'post',
    data: data
  })
}
